# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=py3-sphinxcontrib-hydomain
pkgver=0.1.0_git20220623
_commit="c4fd2e529530432e0a2431afff388943ba5b2f3e"
pkgrel=2
pkgdesc="Sphinx hydomain extension"
url="https://github.com/hylang/sphinxcontrib-hydomain"
arch="noarch"
license="BSD-3-Clause"
depends="py3-sphinx"
makedepends="py3-setuptools"
options="!check" # no test suite
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/hylang/sphinxcontrib-hydomain/archive/$_commit.tar.gz"
builddir="$srcdir/sphinxcontrib-hydomain-$_commit"

replaces="py-sphinxcontrib-hydomain" # for backwards compatibility
provides="py-sphinxcontrib-hydomain=$pkgver-r$pkgrel" # for backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
9369c0ea31e6f9f19457c8162868cd1fe029b6f42bead337f71f484fda3fefbd0d4390a2466a53a9b028833622a0bf13ab02be2abb452051dd10b9aa77db2617  py3-sphinxcontrib-hydomain-0.1.0_git20220623.tar.gz
"
